import { createApp } from 'vue'
// import App from './App.vue'
import Login from "@/webDemo/homeWork1/Login.vue";
import router from "@/router/webDemo-homeWork1-Login";

createApp(Login).use(router).mount('#app')






// import App from './headineNews/App.vue'
// import router from "@/headineNews/router/index";
// import store from "@/headineNews/store/index"

// import router from "@/router/Dome5-2Index";
// import ex1App from './components/EX/ex1/ex1App.vue'

// import routerIndex from "@/components/levele4Project/Dome5/Dome5-1/RouterIndex.vue";

// import TodoList from "@/components/levele4Project/Dome5/Dome5-2/TodoList.vue";
// import App from "@/components/levele4Project/Dome5/Dome5-2/App.vue"

// import {store} from "core-js/internals/reflect-metadata";

import LoginView from "@/components/levele4Project/Dome6/LoginView.vue";
// import dl from "@/components/levele4Project/Dome6/dl.vue";

// router.beforeEach((to,from,next) => {
//     const newRoute = ['/dl','/RouterIndex'];
//     let isLogin = store.getters.getLogin;
//     if (newRoute.indexOf(to.path) >= 0){
//         if(!isLogin) {
//             router.push({
//                 path:'/login'
//             })
//         }
//     }
//     next();
// });